package com.hcy.driver;

import com.hcy.common.dto.request.TrackInfoRequestDTO;
import com.hcy.common.dto.response.TrackInfoResponseDTO;
import com.hcy.driver.dto.request.BaseInfoRequestDTO;
import com.hcy.driver.dto.response.BaseInfoResponseDTO;
import com.hcy.ordermodel.dto.request.HomeInfoRequestDTO;
import com.hcy.ordermodel.dto.response.HomeInfoResponseDTO;
import com.hcy.rabbitbasicmodel.model.ResponseData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Author huchenying
 * @Description
 * @Date 2021/12/29 18:03
 */
@FeignClient(name = "common-api")
public interface DriverPageInfoClient {
    @PostMapping("/driver/homeInfo")
    ResponseData<HomeInfoResponseDTO> doHomeInfo(@RequestBody @Validated HomeInfoRequestDTO requestDTO);
    @PostMapping("/driver/baseInfo")
    ResponseData<BaseInfoResponseDTO> baseInfo(@RequestBody @Validated BaseInfoRequestDTO requestDTO);
}
